package com.appkubes.mall.core.pojo;

import com.appkubes.mall.core.po.MallCollectedRecords;
import com.appkubes.mall.core.po.MallCollectedRecordsExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.type.JdbcType;

public interface MallCollectedRecordsMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_collected_records
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallCollectedRecordsSqlProvider.class, method="countByExample")
    long countByExample(MallCollectedRecordsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_collected_records
     *
     * @mbg.generated
     */
    @DeleteProvider(type=MallCollectedRecordsSqlProvider.class, method="deleteByExample")
    int deleteByExample(MallCollectedRecordsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_collected_records
     *
     * @mbg.generated
     */
    @Delete({
        "delete from mall_collected_records",
        "where collected_records_key = #{collectedRecordsKey,jdbcType=VARCHAR}"
    })
    int deleteByPrimaryKey(String collectedRecordsKey);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_collected_records
     *
     * @mbg.generated
     */
    @Insert({
        "insert into mall_collected_records (collected_records_key, app_key, ",
        "order_no, bank_name, ",
        "acount_name, finance_name, ",
        "pay_type, input_man, ",
        "input_time, verify_man, ",
        "verify_time, collect_time, ",
        "order_key, user_key, ",
        "`desc`, img_url, amount, ",
        "check_state, check_desc, ",
        "create_time, update_time, ",
        "version)",
        "values (#{collectedRecordsKey,jdbcType=VARCHAR}, #{appKey,jdbcType=VARCHAR}, ",
        "#{orderNo,jdbcType=VARCHAR}, #{bankName,jdbcType=VARCHAR}, ",
        "#{acountName,jdbcType=VARCHAR}, #{financeName,jdbcType=VARCHAR}, ",
        "#{payType,jdbcType=VARCHAR}, #{inputMan,jdbcType=VARCHAR}, ",
        "#{inputTime,jdbcType=INTEGER}, #{verifyMan,jdbcType=VARCHAR}, ",
        "#{verifyTime,jdbcType=INTEGER}, #{collectTime,jdbcType=INTEGER}, ",
        "#{orderKey,jdbcType=VARCHAR}, #{userKey,jdbcType=VARCHAR}, ",
        "#{desc,jdbcType=VARCHAR}, #{imgUrl,jdbcType=VARCHAR}, #{amount,jdbcType=DECIMAL}, ",
        "#{checkState,jdbcType=TINYINT}, #{checkDesc,jdbcType=VARCHAR}, ",
        "#{createTime,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER}, ",
        "#{version,jdbcType=INTEGER})"
    })
    int insert(MallCollectedRecords record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_collected_records
     *
     * @mbg.generated
     */
    @InsertProvider(type=MallCollectedRecordsSqlProvider.class, method="insertSelective")
    int insertSelective(MallCollectedRecords record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_collected_records
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallCollectedRecordsSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="collected_records_key", property="collectedRecordsKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="bank_name", property="bankName", jdbcType=JdbcType.VARCHAR),
        @Result(column="acount_name", property="acountName", jdbcType=JdbcType.VARCHAR),
        @Result(column="finance_name", property="financeName", jdbcType=JdbcType.VARCHAR),
        @Result(column="pay_type", property="payType", jdbcType=JdbcType.VARCHAR),
        @Result(column="input_man", property="inputMan", jdbcType=JdbcType.VARCHAR),
        @Result(column="input_time", property="inputTime", jdbcType=JdbcType.INTEGER),
        @Result(column="verify_man", property="verifyMan", jdbcType=JdbcType.VARCHAR),
        @Result(column="verify_time", property="verifyTime", jdbcType=JdbcType.INTEGER),
        @Result(column="collect_time", property="collectTime", jdbcType=JdbcType.INTEGER),
        @Result(column="order_key", property="orderKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="user_key", property="userKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="desc", property="desc", jdbcType=JdbcType.VARCHAR),
        @Result(column="img_url", property="imgUrl", jdbcType=JdbcType.VARCHAR),
        @Result(column="amount", property="amount", jdbcType=JdbcType.DECIMAL),
        @Result(column="check_state", property="checkState", jdbcType=JdbcType.TINYINT),
        @Result(column="check_desc", property="checkDesc", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.INTEGER),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.INTEGER),
        @Result(column="version", property="version", jdbcType=JdbcType.INTEGER)
    })
    List<MallCollectedRecords> selectByExampleWithRowbounds(MallCollectedRecordsExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_collected_records
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallCollectedRecordsSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="collected_records_key", property="collectedRecordsKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="bank_name", property="bankName", jdbcType=JdbcType.VARCHAR),
        @Result(column="acount_name", property="acountName", jdbcType=JdbcType.VARCHAR),
        @Result(column="finance_name", property="financeName", jdbcType=JdbcType.VARCHAR),
        @Result(column="pay_type", property="payType", jdbcType=JdbcType.VARCHAR),
        @Result(column="input_man", property="inputMan", jdbcType=JdbcType.VARCHAR),
        @Result(column="input_time", property="inputTime", jdbcType=JdbcType.INTEGER),
        @Result(column="verify_man", property="verifyMan", jdbcType=JdbcType.VARCHAR),
        @Result(column="verify_time", property="verifyTime", jdbcType=JdbcType.INTEGER),
        @Result(column="collect_time", property="collectTime", jdbcType=JdbcType.INTEGER),
        @Result(column="order_key", property="orderKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="user_key", property="userKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="desc", property="desc", jdbcType=JdbcType.VARCHAR),
        @Result(column="img_url", property="imgUrl", jdbcType=JdbcType.VARCHAR),
        @Result(column="amount", property="amount", jdbcType=JdbcType.DECIMAL),
        @Result(column="check_state", property="checkState", jdbcType=JdbcType.TINYINT),
        @Result(column="check_desc", property="checkDesc", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.INTEGER),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.INTEGER),
        @Result(column="version", property="version", jdbcType=JdbcType.INTEGER)
    })
    List<MallCollectedRecords> selectByExample(MallCollectedRecordsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_collected_records
     *
     * @mbg.generated
     */
    @Select({
        "select",
        "collected_records_key, app_key, order_no, bank_name, acount_name, finance_name, ",
        "pay_type, input_man, input_time, verify_man, verify_time, collect_time, order_key, ",
        "user_key, `desc`, img_url, amount, check_state, check_desc, create_time, update_time, ",
        "version",
        "from mall_collected_records",
        "where collected_records_key = #{collectedRecordsKey,jdbcType=VARCHAR}"
    })
    @Results({
        @Result(column="collected_records_key", property="collectedRecordsKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR),
        @Result(column="bank_name", property="bankName", jdbcType=JdbcType.VARCHAR),
        @Result(column="acount_name", property="acountName", jdbcType=JdbcType.VARCHAR),
        @Result(column="finance_name", property="financeName", jdbcType=JdbcType.VARCHAR),
        @Result(column="pay_type", property="payType", jdbcType=JdbcType.VARCHAR),
        @Result(column="input_man", property="inputMan", jdbcType=JdbcType.VARCHAR),
        @Result(column="input_time", property="inputTime", jdbcType=JdbcType.INTEGER),
        @Result(column="verify_man", property="verifyMan", jdbcType=JdbcType.VARCHAR),
        @Result(column="verify_time", property="verifyTime", jdbcType=JdbcType.INTEGER),
        @Result(column="collect_time", property="collectTime", jdbcType=JdbcType.INTEGER),
        @Result(column="order_key", property="orderKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="user_key", property="userKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="desc", property="desc", jdbcType=JdbcType.VARCHAR),
        @Result(column="img_url", property="imgUrl", jdbcType=JdbcType.VARCHAR),
        @Result(column="amount", property="amount", jdbcType=JdbcType.DECIMAL),
        @Result(column="check_state", property="checkState", jdbcType=JdbcType.TINYINT),
        @Result(column="check_desc", property="checkDesc", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.INTEGER),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.INTEGER),
        @Result(column="version", property="version", jdbcType=JdbcType.INTEGER)
    })
    MallCollectedRecords selectByPrimaryKey(String collectedRecordsKey);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_collected_records
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallCollectedRecordsSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") MallCollectedRecords record, @Param("example") MallCollectedRecordsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_collected_records
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallCollectedRecordsSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") MallCollectedRecords record, @Param("example") MallCollectedRecordsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_collected_records
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallCollectedRecordsSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(MallCollectedRecords record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_collected_records
     *
     * @mbg.generated
     */
    @Update({
        "update mall_collected_records",
        "set app_key = #{appKey,jdbcType=VARCHAR},",
          "order_no = #{orderNo,jdbcType=VARCHAR},",
          "bank_name = #{bankName,jdbcType=VARCHAR},",
          "acount_name = #{acountName,jdbcType=VARCHAR},",
          "finance_name = #{financeName,jdbcType=VARCHAR},",
          "pay_type = #{payType,jdbcType=VARCHAR},",
          "input_man = #{inputMan,jdbcType=VARCHAR},",
          "input_time = #{inputTime,jdbcType=INTEGER},",
          "verify_man = #{verifyMan,jdbcType=VARCHAR},",
          "verify_time = #{verifyTime,jdbcType=INTEGER},",
          "collect_time = #{collectTime,jdbcType=INTEGER},",
          "order_key = #{orderKey,jdbcType=VARCHAR},",
          "user_key = #{userKey,jdbcType=VARCHAR},",
          "`desc` = #{desc,jdbcType=VARCHAR},",
          "img_url = #{imgUrl,jdbcType=VARCHAR},",
          "amount = #{amount,jdbcType=DECIMAL},",
          "check_state = #{checkState,jdbcType=TINYINT},",
          "check_desc = #{checkDesc,jdbcType=VARCHAR},",
          "create_time = #{createTime,jdbcType=INTEGER},",
          "update_time = #{updateTime,jdbcType=INTEGER},",
          "version = #{version,jdbcType=INTEGER}",
        "where collected_records_key = #{collectedRecordsKey,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKey(MallCollectedRecords record);
}